<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../common/commonJS.jsp" %>
<%@ include file="../common/commonLabel.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>特殊入库信息列表</title>
</head>
<script type="text/javascript">

function doIns(){
	document.all["operate"].value = "inspage";
	document.forms[0].submit();
}

function doDeltype(cid){
	if(confirm("确定删除该物料信息吗？")){
		document.all["sid"].value = cid;
		document.all["operate"].value = "delinfo";
		document.forms[0].submit();
	}
}

</script>
<body>
<form action="<%=path %>/stockspecial.action" method="post" >
<table width="100%" height="99%" border="0" cellpadding="0" cellspacing="0" >
    <tr>
      <td class="MainBody_body" style="padding: 0 10 10 0;">
      <input name="mtp" type="hidden" value="${mtp}"/>
        <table border="0" cellspacing="0" cellpadding="0" style="margin-top: 10px;margin-bottom: 10px;width:90%">
			<tr>
				<td align="right" ><input name="sid" type="hidden" value=""/><input name="operate" type="hidden" value=""/></td>
				<td align="right" ><input type="button" value="继续添加" class="btn" onclick="doIns()"/></td>
			</tr>
		</table>
        <table border="0" cellpadding="0" cellspacing="0"  class="MainBody_table">
           <tr>
           		<th width="5%" nowrap="nowrap">序号</th>
				<th width="16%" nowrap="nowrap">物料名称</th>
				<th width="8%" nowrap="nowrap">操作数量</th>
				<th width="8%" nowrap="nowrap">出入类别</th>
				<th width="6%" nowrap="nowrap">操作人</th>
				<th width="16%" nowrap="nowrap">录入时间</th>
				<th width="12%" nowrap="nowrap">备注</th>
				<!--<th width="8%" nowrap="nowrap">操作</th>-->
			</tr>
			<c:forEach items="${listinfo}" varStatus="status" var="rows">
			<tr>
				<td nowrap="nowrap">${status.index+1}</td>
				<td nowrap="nowrap">${rows.goodsname}</td>
				<td nowrap="nowrap">${rows.rightnum}</td>
				<td nowrap="nowrap">${rows.crflag}</td>
				<td nowrap="nowrap">${rows.createuser}</td>
				<td nowrap="nowrap">${rows.createtime}</td>
				<td nowrap="nowrap">${rows.remark}</td>
				<!--<td nowrap="nowrap">
				<span class='RoleSpan' onclick="doDeltype('${rows.id}')" title='删除该特殊信息' style='color: purple;' onmouseout="doMsOut('purple')" onmouseover='doMsOver()'>删除</span>
				</td>--> 
			</tr>
			</c:forEach>
		<c:if test="${empty listinfo}">
			<tr>
				<td colspan="7" align="center">暂时没有您可以浏览的数据</td>
			</tr>
		</c:if>
          </table>
          <c:if test="${!empty listinfo}">
          <table border="0" cellpadding="0" cellspacing="0" class="MainBody_fun">
            <tr>
              <td>
               <hello:AllPage />
			  </td>
            </tr>
          </table>
          </c:if>
          </td>
      </tr>
    </table>
</form>
</body>
</html>